package nc.vo.gsp.pub;

public class IntList {

	private org.apache.poi.util.IntList list;

	public IntList() {
		super();
		list = new org.apache.poi.util.IntList();
	}

	public IntList(int size) {
		super();
		list = new org.apache.poi.util.IntList(size);
	}

	public boolean add(int ivalue) {
		return list.add(ivalue);
	}

	public void add(int ipos, int ivalue) {
		list.add(ipos, ivalue);
	}

	public int get(int ipos) {
		return list.get(ipos);
	}

	public int set(int ipos, int ivalue) {
		return list.set(ipos, ivalue);
	}

	public int[] toIntArray() {
		if (list.size() <= 0)
			return null;

		return list.toArray();

	}

	public boolean contains(int ivalue) {
		return list.contains(ivalue);
	}

	public int indexOf(int ivalue) {
		return list.indexOf(ivalue);
	}

	public int size() {
		return list.size();
	}

}